﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;
using IsTakip.BL;

namespace IsTakip.DAL
{
    public class DatabaseBaglantisi
    {

        private SqlConnection Kon;

        public SqlConnection DBBaglanti
        {
            get { return Kon; }
        }

        public void BaglantiAc()
        {
            SqlConnection Ac = new SqlConnection(IsTakip.BL.Parametres.dsnIsTakip);
            Kon = Ac;
            Ac.Open();
        
        }

        public void BaglantiKapat()
        {
            DBBaglanti.Close();
        }

    }
}
